import "./include.js"

//dda版本
let ddaVer= (await DdaReader.Rpc(DdaReader.CALL_GetDdaVer, 0, NPack.Pack())).ToString();
console.log("ddaVer="+ddaVer)

//entry数量
let entryNum= (await DdaReader.Rpc(DdaReader.CALL_GetEntryNum, 0, NPack.Pack())).ToString();
console.log("entryNum="+entryNum)


//写串
await DdaReader.SetParam(0x0650, 2, NPack.Str("abc"));

//写灯
await DdaReader.SetParam(0x0420, 2, NPack.Word(0x02));

//型号
let model= (await DdaReader.GetParam(0x400, 3)).ToString(16)
console.log("model="+model);

//查字符串
let textTagStr= (await DdaReader.GetParam(0x652, 1)).ToString()
console.log("TextTag="+textTagStr);


process.exit()